#!/bin/bash

FILES=`ls ./*.txt`

for file in $FILES
do
    cat $file | tr -d '\n' | tr -d '\r' > $file.tmp
    mv $file.tmp $file
    echo "####"
done
